- if viewer.valid?
  = sprite_icon('check')
  = _('Metrics Dashboard YAML definition is valid.')
- else
  = sprite_icon('warning-solid')
  = _('Metrics Dashboard YAML definition is invalid:')
  %ul
    - viewer.errors.each do |error|
      %li= error

= link_to _('Learn more'), help_page_path('operations/metrics/dashboards/index.md')
